//
//  SPCTestViewController.m
//  SmallPigCar
//
//  Created by 张令林 on 2016/11/1.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "SPCTestViewController.h"

@interface SPCTestViewController ()

@end

@implementation SPCTestViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    //调用初始化方法
    [self setUpUI];
}

#pragma mark 初始化方法
- (void)setUpUI
{
    self.view.backgroundColor = [UIColor whiteColor];
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithRed:110 green:203 blue:108]] forBarMetrics:UIBarMetricsDefault];
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    UIViewController *vc = [UIViewController new];
    vc.view.backgroundColor = [UIColor orangeColor];
    [self.navigationController pushViewController:vc animated:YES];
    

}

@end
